// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.WorkFlowNodeConfigDao;
import com.liuxinlong.modules.entity.WorkFlowNodeConfig;
import com.liuxinlong.modules.mapper.WorkFlowNodeConfigMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2024年4月23日
 */
@Service
public class WorkFlowNodeConfigDaoImpl extends ServiceImpl<WorkFlowNodeConfigMapper, WorkFlowNodeConfig> implements WorkFlowNodeConfigDao {


    @Override
    public List<WorkFlowNodeConfig> pageWorkflowNodeConfigList(Map<String, Object> queryParam) {
        return baseMapper.pageWorkflowNodeConfigList(queryParam);
    }

    @Override
    public int getWorkflowNodeConfigCount(Map<String, Object> queryParam) {
        return baseMapper.getWorkflowNodeConfigCount(queryParam);
    }

    @Override
    public List<WorkFlowNodeConfig> getWorkflowNodeConfigList(String configId) {
        return baseMapper.getWorkflowNodeConfigList(configId);
    }

    @Override
    public void deleteByConfigId(String configId) {
        baseMapper.deleteByConfigId(configId);
    }

    @Override
    public WorkFlowNodeConfig getByWorkflowNode(String workflowConfigId, int currentNode) {
        return baseMapper.getByWorkflowNode(workflowConfigId,currentNode);
    }

    @Override
    public WorkFlowNodeConfig getLastNode(String workflowConfigId) {
        return baseMapper.getLastNode(workflowConfigId);
    }

    @Override
    public Map<String, Map<String, String>> getWorkflowNodeConfigMap(String configId) {
        return baseMapper.getWorkflowNodeConfigMap(configId);
    }

    @Override
    public List<WorkFlowNodeConfig> getWorkflowNodeConfigByList(List<String> idList) {
        return baseMapper.getWorkflowNodeConfigByList(idList);
    }


}
